#pragma once

#include <riscv/thread-size.h>
#include <asm-generic/preempt_types.h>

struct thread_info
{
    unsigned long flags;
    preempt_count_t preempt;
	void *kernel_sp;	/* Kernel stack pointer */
	void *user_sp;	/* User stack pointer */

	unsigned long ra;
	unsigned long sp;	/* Kernel mode stack */
	unsigned long s[12];	/* s[0]: frame pointer */
};

#define TIF_NEED_RESCHED	1	/* rescheduling necessary */
